package com.juyu.miliao.api.controller;

import com.alibaba.fastjson.JSONObject;
import com.juyu.miliao.api.service.AdvertisementService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 广告控制层
 * @Auther: 卜加超
 * @Date: 2019/4/25 13:40
 * @Description:
 */
@RestController
@RequestMapping("/advertisement")
public class AdvertisementController {
    @Resource
    private AdvertisementService advertisementService;

    @PostMapping("/switch")
    public JSONObject getAdvertisementSwitch(){
        return advertisementService.getAdvertisementSwitch();
    }

}
